package com.example.simin_manage.util;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @description:
 * @author: panpan
 * @time: 2025/9/20
 */
@Getter
public enum PerformancePeriodStatus {

    NOT_STARTED(0, "未开始"),
    ACTIVE(1, "生效"),
    ENDED(2, "已结束");

    @EnumValue  // 标记存储到数据库的值
    private final int value;

    private final String description;

    PerformancePeriodStatus(int value, String description) {
        this.value = value;
        this.description = description;
    }
}